package dao;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Sale entity. @author MyEclipse Persistence Tools
 */

public class Sale implements java.io.Serializable {

	// Fields

	private Integer saleId;
	private Users users;
	private Timestamp saleDate;
	private Set saleDetails = new HashSet(0);

	// Constructors

	/** default constructor */
	public Sale() {
	}

	/** minimal constructor */
	public Sale(Integer saleId, Users users, Timestamp saleDate) {
		this.saleId = saleId;
		this.users = users;
		this.saleDate = saleDate;
	}

	/** full constructor */
	public Sale(Integer saleId, Users users, Timestamp saleDate, Set saleDetails) {
		this.saleId = saleId;
		this.users = users;
		this.saleDate = saleDate;
		this.saleDetails = saleDetails;
	}

	// Property accessors

	public Integer getSaleId() {
		return this.saleId;
	}

	public void setSaleId(Integer saleId) {
		this.saleId = saleId;
	}

	public Users getUsers() {
		return this.users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public Timestamp getSaleDate() {
		return this.saleDate;
	}

	public void setSaleDate(Timestamp saleDate) {
		this.saleDate = saleDate;
	}

	public Set getSaleDetails() {
		return this.saleDetails;
	}

	public void setSaleDetails(Set saleDetails) {
		this.saleDetails = saleDetails;
	}

}